# script1701 - Properly handle Divide by Zero Exception
# Written by Blum and Bresnahan
#
#####################################################
#
################## Functions ########################
#
def divide_it():
	print()
	number=int(input("Please enter number to divide: "))
	print()
	divisor=int(input("Please enter the divisor: "))
	print()
	try:
		result=number / divisor
		print("The result is:", result)
#
	except ZeroDivisionError:
		print("You cannot divide a number by zero.")
		print("Script terminating....")
		print()
#
############## Mainline #############################
#
def main():
	divide_it()
#
############ Call the Main Function ###################
#
main()
